<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">评分类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-table_as_name" data-rule="required" class="form-control" name="row[table_as_name]" type="text" value="{$row.table_as_name|htmlentities}" disabled>
        </div>
    </div>

<!--    作品信息-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">作品信息:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="img_box">
                <img style="width: 200px;height: 150px;object-fit: contain;object-position: center;" src="{$row['object']['image']}" alt="">
            </div>
            <div class="title_box" style="margin-top: 15px">
                <p>{$row['object']['title']}</p>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">评分用户:</label>
        <div class="col-xs-12 col-sm-8">
<!--            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled>-->
            <input id="c-user_id" data-rule="required"  class="form-control" name="row[user_id]" type="text" value="{$row.user_nickname|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="{$row.score|htmlentities}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
